/**
 * 工作台相关请求
 */
import { GET, POST } from "./xhr";

// 新增工作台
export const fetchAddWorkbench = async (data: any) => await POST("/api/workbench/add", data);

// 请求所有工作台
export const fetchAllWorkbench = async () => await GET("/api/workbench/all");

// 删除工作台
export const fetchDelWorkbench = async (data: any) => await POST("/api/workbench/del", data);

// 更新试管架
export const fetchUpdateWorkbench = async (data: any) => await POST("/api/workbench/update", data);

// 请求工作台详情
export const fetchWorkbenchDetail = async (data: any) => await POST("/api/workbench/detail", data);

// 请求预设工作台列表
export const fetchExpTableList = async () => await GET("/api/workbench/exptablelist");

// 新增预设工作台
export const fetchAddExpTable = async (data: any) => await POST("/api/workbench/addexptable", data);

// 修改预设工作台
export const fetchUpdateExpTable = async (data: any) => await POST("/api/workbench/updateexptable", data);

// 删除预设工作台
export const fetchDelExpTable = async (data: any) => await POST("/api/workbench/delexptable", data);

// 请求预设实验台详细信息
// export const fetchExpTableDetail = async (data: any) => await POST("/api/workbench/exptableinfo", data);